import { ITableInit } from "@/components/base-ui/table";

export const tableInit: ITableInit = {
  propList: [
    { prop: "orderid", label: "订单号", minWidth: "100" },
    { prop: "createTime", label: "订单时间", minWidth: "100" },
    {
      prop: "userOrderInfoResponses",
      label: "订单商品",
      minWidth: "100",
      slot: "produ"
    },
    {
      prop: "userOrderInfoResponses",
      label: "数量",
      minWidth: "100",
      slot: "num"
    },
    { prop: "price", label: "订单金额", minWidth: "100", slot: "price" },
    { prop: "username", label: "客户名", minWidth: "100" },
    { prop: "phone", label: "手机号码", minWidth: "100" },
    { prop: "address", label: "收货地址", minWidth: "100" },
    {
      prop: "orderstatu",
      label: "订单状态",
      minWidth: "100",
      slot: "orderstatu"
    },
    // {
    //   prop: "fpimage",
    //   label: "发票",
    //   minWidth: "100",
    //   slot: "fpimage"
    // },
    { prop: "ydh", label: "快递单号", minWidth: "100" },
    { prop: "operation", label: "操作", minWidth: "100", slot: "operation" }
  ],
  // children: {
  //   rowKey: "id",
  //   treeProp: {
  //     children: "children",
  //     hasChildren: true
  //   }
  // }
  // showIndex: false,
  // selection: false,
  // cardStyle: {
  //   marginTop: '20px'
  // },

  pagination: true,
  paginationConfig: {
    currentPage: 1,
    pageSize: 10
  },
  total: 0,
  btn: ["export", "mailbox"]
};
